#ifndef __BALL_HPP__
#define __BALL_HPP__

#include <SFML/Graphics.hpp>
#include "PhysicObject.hpp"
#include "Entity.hpp"


class Ball : public Entity
{
    public :
    
        Ball(sf::Vector2f startPos);
        
        void update();
        void collideWith(Entity& e);
        void collideWith(Ball& b);
        void collideWith(Platform& p);
        
        void endCollideWith(Entity& e);
        void endCollideWith(Ball& b);
        void endCollideWith(Platform& p);
        virtual void draw(sf::RenderTarget &target, sf::RenderStates states) const;       
        
         
    private :
        
        PhysicObject m_obj;
        sf::CircleShape m_shape;
        bool m_canJump;
};

#endif /* __BALL_HPP__ */

